package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Product;
import cn.wolfcode.crm.domain.Product;
import cn.wolfcode.crm.qo.QueryObject;

import java.math.BigDecimal;
import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(Long id);
    int insert(Product record);
    Product selectByPrimaryKey(Long id);
    List<Product> selectAll();
    int updateByPrimaryKey(Product record);
    List<Product> selectByQuery(QueryObject queryObject);

    int countByQuery(QueryObject queryObject);

    BigDecimal selectPriceById(Long id);

}